import device_0 from "@/assets/images/bgs/device_0.png";
import device_1 from "@/assets/images/bgs/device_1.png";
import device_2 from "@/assets/images/bgs/device_2.png";
import device_3 from "@/assets/images/bgs/device_3.png";
import device_4 from "@/assets/images/bgs/device_4.png";
import device_5 from "@/assets/images/bgs/device_5.png";
import device_6 from "@/assets/images/bgs/device_6.png";
import device_7 from "@/assets/images/bgs/device_7.png";
import device_8 from "@/assets/images/bgs/device_8.png";
import device_9 from "@/assets/images/bgs/device_9.png";

// import pm_0 from "@/assets/images/bgs/device_2.png"; // todo:

import largeSys_0 from "@/assets/images/bgs/largeSys_0.png";

import smallSys_1 from "@/assets/images/bgs/smallSys_1.png";
import smallSys_2 from "@/assets/images/bgs/smallSys_2.png";
import smallSys_3 from "@/assets/images/bgs/smallSys_3.png";

import water_0 from "@/assets/images/bgs/water_0.png";
import light_0 from "@/assets/images/bgs/light_0.png";
import electric_0 from "@/assets/images/bgs/electric_0.png";
import found_0 from "@/assets/images/bgs/found_0.png";

import model_1 from "@/assets/images/bgs/model_1.png";
import model_2 from "@/assets/images/bgs/model_2.png";
import model_3 from "@/assets/images/bgs/model_3.png";
import model_4 from "@/assets/images/bgs/model_4.png";
import model_5 from "@/assets/images/bgs/model_5.png";
import model_6 from "@/assets/images/bgs/model_6.png";

export const tagMap = {
  model_1: {
    name: "大系统",
    comName: "largeSys_0",
    config: {
      menu1_active: 1,
      menu2_active: 0,
      menu3_active: 0
    }
  },
  model_2: {
    name: "K1小系统",
    comName: "smallSys_1",
    config: {
      menu1_active: 1,
      menu2_active: 1,
      menu3_active: 1
    }
  },
  model_3: {
    name: "K2小系统",
    comName: "smallSys_2",
    config: {
      menu1_active: 1,
      menu2_active: 1,
      menu3_active: 2
    }
  },
  model_4: {
    name: "T1小系统",
    comName: "smallSys_3",
    config: {
      menu1_active: 1,
      menu2_active: 1,
      menu3_active: 3
    }
  },
  model_5: {
    name: "隧道通风系统",
    comName: "found_0",
    config: {
      menu1_active: 1,
      menu2_active: 2,
      menu3_active: 0
    }
  },
  model_6: {
    name: "隧道通风系统",
    comName: "found_0",
    config: {
      menu1_active: 1,
      menu2_active: 2,
      menu3_active: 0
    }
  },
  //
  largeSys_0: {
    name: "大系统",
    comName: "model_1",
    config: {
      menu1_active: 1,
      menu2_active: 6,
      menu3_active: 1
    }
  },
  smallSys_1: {
    name: "K1小系统",
    comName: "model_2",
    config: {
      menu1_active: 1,
      menu2_active: 6,
      menu3_active: 2
    }
  },
  smallSys_2: {
    name: "K2小系统",
    comName: "model_3",
    config: {
      menu1_active: 1,
      menu2_active: 6,
      menu3_active: 3
    }
  },
  smallSys_3: {
    name: "T1小系统",
    comName: "model_4",
    config: {
      menu1_active: 1,
      menu2_active: 6,
      menu3_active: 4
    }
  },
  found_0: {
    name: "隧道系统",
    comName: "model_5",
    config: {
      menu1_active: 1,
      menu2_active: 6,
      menu3_active: 5
    }
  }
};

export const defaultMenus: any = [
  {
    title: "FAS",
    children: [
      {
        title: "设备分区图",
        name: "device",
        children: ["出入口一", "出入口二", "设备层一", "设备层二", "站台层一", "站台层二", "站厅一", "站厅二", "站厅三"]
      }
      // {
      //   title: "平面图",
      //   name: "pm"
      // }
    ]
  },
  {
    title: "ECMS",
    name: "ecms",
    children: [
      {
        title: "大系统",
        name: "largeSys"
      },
      {
        title: "小系统",
        name: "smallSys",
        children: ["K1小系统", "K2小系统", "T1小系统"]
      },
      {
        title: "隧道通风系统",
        name: "found"
      },
      {
        title: "照明系统",
        name: "light"
      },
      {
        title: "给排水",
        name: "water"
      },
      {
        title: "电扶梯",
        name: "electric"
      },
      {
        title: "模式控制",
        name: "model",
        children: ["大系统", "K1小系统", "K2小系统", "T1小系统", "桂-桂区间", "桂-吴区间"]
      }
    ]
  }
];

//device
export const bgMap = {
  device_0,
  device_1,
  device_2,
  device_3,
  device_4,
  device_5,
  device_6,
  device_7,
  device_8,
  device_9,
  //
  // pm_0,
  //
  largeSys_0,
  //
  smallSys_1,
  smallSys_2,
  smallSys_3,
  //
  water_0,
  found_0,
  light_0,
  electric_0,
  //
  model_1,
  model_2,
  model_3,
  model_4,
  model_5,
  model_6
};

export const bgWithConfig = {
  device_1: {
    width: "1810px",
    height: "617px"
  },
  largeSys_0: {
    width: "1315px",
    height: "693px"
  },
  //
  smallSys_1: {
    width: "1149px",
    height: "527px"
  },
  smallSys_2: {
    width: "1042px",
    height: "523px"
  },
  smallSys_3: {
    width: "1037px",
    height: "524px"
  },
  //
  water_0: {
    width: "1670px",
    height: "699px"
  },
  found_0: {
    width: "1732px",
    height: "700px"
  },
  light_0: {
    width: "1688px",
    height: "750px"
  },
  electric_0: {
    width: "1288px",
    height: "516px"
  },
  //
  model_1: {
    width: "1456px",
    height: "604px"
  },
  model_2: {
    width: "1302px",
    height: "552px"
  },
  model_3: {
    width: "1069px",
    height: "518px"
  },
  model_4: {
    width: "1276px",
    height: "465px"
  },
  model_5: {
    width: "1249px",
    height: "538px"
  },
  model_6: {
    width: "1275px",
    height: "527px"
  }
};
